package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        double b =3.14;
        float a= 3.14F;


        //double有的时候运算时不精确的 会向上或者下 所以精确运算不能用double

        double x=6.0; double y =4.9;
        System.out.println(x-y);
        double h=3.0; double j = 2.9;
        System.out.println(h-j);
        double i = 6.0; double o = 1.9;
        System.out.println(i-o);
        double n=9.0; double m =1.9;
        System.out.println(n-m);
    }
}
